<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>HTTP 函数</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="httpresponse.status.html">HttpResponse::status</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.http-cache-etag.html">http_cache_etag</a></div>
 <div class="up"><a href="book.http.html">HTTP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="ref.http" class="reference">
 <h1 class="title">HTTP 函数</h1>
 <div class="partintro">
  <p class="simpara">
   Built-in HTTP related functions previously listed on this page can be found in the
   <a href="ref.network.html" class="link">networking</a> category.
  </p>
  <p class="simpara">
   The following functions do not need the HTTP module to be present:
   <span class="function"><a href="function.header.html" class="function">header()</a></span>, <span class="function"><a href="function.headers-list.html" class="function">headers_list()</a></span>, <span class="function"><a href="function.headers-sent.html" class="function">headers_sent()</a></span>,
   <span class="function"><a href="function.setcookie.html" class="function">setcookie()</a></span>  和  <span class="function"><a href="function.setrawcookie.html" class="function">setrawcookie()</a></span>.
  </p>

  <div class="section" id="http.functions">
   <h2 class="title">Function groups</h2>
   <div class="section">
    <h2 class="title">Caching</h2>
    <ul class="simplelist">
     <li class="member"><span class="function"><a href="function.http-cache-etag.html" class="function">http_cache_etag()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-cache-last-modified.html" class="function">http_cache_last_modified()</a></span></li>
    </ul>
   </div>
   <div class="section">
    <h2 class="title">Encodings</h2>
    <ul class="simplelist">
     <li class="member"><span class="function"><a href="function.http-chunked-decode.html" class="function">http_chunked_decode()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-deflate.html" class="function">http_deflate()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-inflate.html" class="function">http_inflate()</a></span></li>
    </ul>
   </div>
   <div class="section">
    <h2 class="title">Miscellaneous</h2>
    <ul class="simplelist">
     <li class="member"><span class="function"><a href="function.http-build-cookie.html" class="function">http_build_cookie()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-date.html" class="function">http_date()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-get-request-body-stream.html" class="function">http_get_request_body_stream()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-get-request-body.html" class="function">http_get_request_body()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-get-request-headers.html" class="function">http_get_request_headers()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-match-etag.html" class="function">http_match_etag()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-match-modified.html" class="function">http_match_modified()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-match-request-header.html" class="function">http_match_request_header()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-support.html" class="function">http_support()</a></span></li>
    </ul>
   </div>
   <div class="section">
    <h2 class="title">Negotiation</h2>
    <ul class="simplelist">
     <li class="member"><span class="function"><a href="function.http-negotiate-charset.html" class="function">http_negotiate_charset()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-negotiate-content-type.html" class="function">http_negotiate_content_type()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-negotiate-language.html" class="function">http_negotiate_language()</a></span></li>
    </ul>
   </div>
   <div class="section">
    <h2 class="title">Outputhandlers</h2>
    <ul class="simplelist">
     <li class="member"><span class="function"><a href="function.ob-deflatehandler.html" class="function">ob_deflatehandler()</a></span></li>
     <li class="member"><span class="function"><a href="function.ob-etaghandler.html" class="function">ob_etaghandler()</a></span></li>
     <li class="member"><span class="function"><a href="function.ob-inflatehandler.html" class="function">ob_inflatehandler()</a></span></li>
    </ul>
   </div>
   <div class="section">
    <h2 class="title">Parsers</h2>
    <ul class="simplelist">
     <li class="member"><span class="function"><a href="function.http-parse-cookie.html" class="function">http_parse_cookie()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-parse-headers.html" class="function">http_parse_headers()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-parse-message.html" class="function">http_parse_message()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-parse-params.html" class="function">http_parse_params()</a></span></li>
    </ul>
   </div>
   <div class="section">
    <h2 class="title">Requests</h2>
    <ul class="simplelist">
     <li class="member"><span class="function"><a href="function.http-get.html" class="function">http_get()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-head.html" class="function">http_head()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-post-data.html" class="function">http_post_data()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-post-fields.html" class="function">http_post_fields()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-put-data.html" class="function">http_put_data()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-put-file.html" class="function">http_put_file()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-put-stream.html" class="function">http_put_stream()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-request-body-encode.html" class="function">http_request_body_encode()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-request-method-exists.html" class="function">http_request_method_exists()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-request-method-name.html" class="function">http_request_method_name()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-request-method-register.html" class="function">http_request_method_register()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-request-method-unregister.html" class="function">http_request_method_unregister()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-request.html" class="function">http_request()</a></span></li>
    </ul>
   </div>
   <div class="section">
    <h2 class="title">Responses</h2>
    <ul class="simplelist">
     <li class="member"><span class="function"><a href="function.http-redirect.html" class="function">http_redirect()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-send-content-disposition.html" class="function">http_send_content_disposition()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-send-content-type.html" class="function">http_send_content_type()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-send-data.html" class="function">http_send_data()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-send-file.html" class="function">http_send_file()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-send-last-modified.html" class="function">http_send_last_modified()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-send-status.html" class="function">http_send_status()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-send-stream.html" class="function">http_send_stream()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-throttle.html" class="function">http_throttle()</a></span></li>
    </ul>
   </div>
   <div class="section">
    <h2 class="title">URLs</h2>
    <ul class="simplelist">
     <li class="member"><span class="function"><a href="function.http-build-str.html" class="function">http_build_str()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-build-url.html" class="function">http_build_url()</a></span></li>
    </ul>
   </div>
   <div class="section">
    <h2 class="title">Persistent Handles</h2>
    <ul class="simplelist">
     <li class="member"><span class="function"><a href="function.http-persistent-handles-count.html" class="function">http_persistent_handles_count()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-persistent-handles-ident.html" class="function">http_persistent_handles_ident()</a></span></li>
     <li class="member"><span class="function"><a href="function.http-persistent-handles-clean.html" class="function">http_persistent_handles_clean()</a></span></li>
    </ul>
   </div>
  </div>

 </div>

 














 





















 































































 





















 





















 




























 


















 



























































































 































































 




















<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.http-cache-etag.html">http_cache_etag</a> — Caching by ETag</li><li><a href="function.http-cache-last-modified.html">http_cache_last_modified</a> — Caching by last modification</li><li><a href="function.http-chunked-decode.html">http_chunked_decode</a> — Decode chunked-encoded data</li><li><a href="function.http-deflate.html">http_deflate</a> — Deflate data</li><li><a href="function.http-inflate.html">http_inflate</a> — Inflate data</li><li><a href="function.http-build-cookie.html">http_build_cookie</a> — Build cookie string</li><li><a href="function.http-date.html">http_date</a> — Compose HTTP RFC compliant date</li><li><a href="function.http-get-request-body-stream.html">http_get_request_body_stream</a> — Get request body as stream</li><li><a href="function.http-get-request-body.html">http_get_request_body</a> — Get request body as string</li><li><a href="function.http-get-request-headers.html">http_get_request_headers</a> — Get request headers as array</li><li><a href="function.http-match-etag.html">http_match_etag</a> — Match ETag</li><li><a href="function.http-match-modified.html">http_match_modified</a> — Match last modification</li><li><a href="function.http-match-request-header.html">http_match_request_header</a> — Match any header</li><li><a href="function.http-support.html">http_support</a> — Check built-in HTTP support</li><li><a href="function.http-negotiate-charset.html">http_negotiate_charset</a> — Negotiate client's preferred character set</li><li><a href="function.http-negotiate-content-type.html">http_negotiate_content_type</a> — Negotiate client's preferred content type</li><li><a href="function.http-negotiate-language.html">http_negotiate_language</a> — Negotiate client's preferred language</li><li><a href="function.ob-deflatehandler.html">ob_deflatehandler</a> — Deflate output handler</li><li><a href="function.ob-etaghandler.html">ob_etaghandler</a> — ETag output handler</li><li><a href="function.ob-inflatehandler.html">ob_inflatehandler</a> — Inflate output handler</li><li><a href="function.http-parse-cookie.html">http_parse_cookie</a> — Parse HTTP cookie</li><li><a href="function.http-parse-headers.html">http_parse_headers</a> — Parse HTTP headers</li><li><a href="function.http-parse-message.html">http_parse_message</a> — Parse HTTP messages</li><li><a href="function.http-parse-params.html">http_parse_params</a> — Parse parameter list</li><li><a href="function.http-persistent-handles-clean.html">http_persistent_handles_clean</a> — Clean up persistent handles</li><li><a href="function.http-persistent-handles-count.html">http_persistent_handles_count</a> — Stat persistent handles</li><li><a href="function.http-persistent-handles-ident.html">http_persistent_handles_ident</a> — Get/set ident of persistent handles</li><li><a href="function.http-get.html">http_get</a> — Perform GET request</li><li><a href="function.http-head.html">http_head</a> — Perform HEAD request</li><li><a href="function.http-post-data.html">http_post_data</a> — Perform POST request with pre-encoded data</li><li><a href="function.http-post-fields.html">http_post_fields</a> — Perform POST request with data to be encoded</li><li><a href="function.http-put-data.html">http_put_data</a> — Perform PUT request with data</li><li><a href="function.http-put-file.html">http_put_file</a> — Perform PUT request with file</li><li><a href="function.http-put-stream.html">http_put_stream</a> — Perform PUT request with stream</li><li><a href="function.http-request-body-encode.html">http_request_body_encode</a> — Encode request body</li><li><a href="function.http-request-method-exists.html">http_request_method_exists</a> — Check whether request method exists</li><li><a href="function.http-request-method-name.html">http_request_method_name</a> — Get request method name</li><li><a href="function.http-request-method-register.html">http_request_method_register</a> — Register request method</li><li><a href="function.http-request-method-unregister.html">http_request_method_unregister</a> — Unregister request method</li><li><a href="function.http-request.html">http_request</a> — Perform custom request</li><li><a href="function.http-redirect.html">http_redirect</a> — Issue HTTP redirect</li><li><a href="function.http-send-content-disposition.html">http_send_content_disposition</a> — Send Content-Disposition</li><li><a href="function.http-send-content-type.html">http_send_content_type</a> — Send Content-Type</li><li><a href="function.http-send-data.html">http_send_data</a> — Send arbitrary data</li><li><a href="function.http-send-file.html">http_send_file</a> — Send file</li><li><a href="function.http-send-last-modified.html">http_send_last_modified</a> — Send Last-Modified</li><li><a href="function.http-send-status.html">http_send_status</a> — Send HTTP response status</li><li><a href="function.http-send-stream.html">http_send_stream</a> — Send stream</li><li><a href="function.http-throttle.html">http_throttle</a> — HTTP throttling</li><li><a href="function.http-build-str.html">http_build_str</a> — 产生一个查询字符串</li><li><a href="function.http-build-url.html">http_build_url</a> — 产生一个 URL</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="httpresponse.status.html">HttpResponse::status</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.http-cache-etag.html">http_cache_etag</a></div>
 <div class="up"><a href="book.http.html">HTTP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
